package level.editor.main;

import level.editor.tool.Tool;
import level.editor.tool.ToolCommand;
import level.editor.tool.layer.ToolLayer;
import level.editor.tool.layer.Visibility;

public class RequestVisibilityCommand extends ToolCommand
{
	Visibility vis;
	
	public RequestVisibilityCommand()
	{
		super("ToolLayer");
		vis = null;
	}

	@Override
	public void execute(Tool tool)
	{
		vis = ((ToolLayer) tool).getVisibility();
	}
	
	public Visibility getVisibility()
	{
		return vis;
	}
}
